﻿function show(obj)
{
    try{
        if(obj.id == "recommendedSpan")
        {
            var recommendDiv = document.getElementById("recommendedProductDiv");
            recommendDiv.style.display="block";
            document.getElementById("newProductDiv").style.display="none";
            
            document.getElementById("newSpan").className="newSpan";
            document.getElementById("recommendedSpan").className="recommendedSpan";
            document.getElementById("newSpan").style.width="280px";
            /*
            document.getElementById("newSpan").style.background="#ACC4E8";
            document.getElementById("recommendedSpan").style.background="#FFFFFF";
            */
        }
        else
        {
             document.getElementById("recommendedProductDiv").style.display="none";
             document.getElementById("newProductDiv").style.display="block";
             
             document.getElementById("recommendedSpan").className="newSpan";
             document.getElementById("newSpan").className="recommendedSpan";
             document.getElementById("newSpan").style.width="300px";
             
             /*
             document.getElementById("recommendedSpan").style.background="#ACC4E8";
             document.getElementById("newSpan").style.background="#FFFFFF";
             */
        }
     }catch(e){
        alert(e);
     }
}